<template>
  <div class="guidePageview">
    <!-- Swiper -->
    <div class="swiper-container mySwiper guidePage">
      <div class="swiper-wrapper">
        <div class="swiper-slide">
          <div class="pageslide">
            <img src="../../assets/logo.png" alt="" />
            <h3>渐进式javascript框架</h3>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="pageslide">
            <img src="../../assets/vant.png" alt="" />
            <h3>vant ui 框架</h3>
          </div>
        </div>
        <div class="swiper-slide">
          <div class="pageslide">
            <img src="../../assets/webpack.png" alt="" />
            <h3>webpack 项目打包工具</h3>
            <van-button plain type="primary" @click="goHome">进入首页</van-button>
          </div>
        </div>
      </div>
      <div class="swiper-pagination guidePage-pagination"></div>
    </div>
  </div>
</template>

<script>
import Swiper from "swiper";
export default {
  mounted() {
    new Swiper(".guidePage", {
      pagination: {
        el: ".guidePage-pagination",
      },
    });
  },
  methods:{
    goHome(){
        window.localStorage.setItem("guidePage","true");
        this.$router.push("/home");
    }
  }
};
</script>

<style lang="less" scoped>
.guidePageview {
  height: 100%;
  .swiper-container {
    height: 100%;
    .pageslide {
      width: 100%;
      height: 100%;
      text-align: center;
      img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
        margin-top: 200px;
      }
      h3 {
        color: #595959;
      }
    }
  }
}
</style>